package router

import (
	"fmt"
	"github.com/astaxie/beego"
	"github.com/astaxie/beego/context"
	"go_test/src/code.song.study/web/controller"
)

func init() {
	//beego.Router("/", )
	fmt.Print("load router init func ... ")
	beego.Router("/test", &controller.UserController{})
	beego.Router("/test", &controller.UserController{})
	beego.Router("/test/adc", &controller.UserController{}, "get:Test")
	// video router
	beego.Router("/photowall/query/video/list", &controller.VideoController{}, "post:QueryVideoList")
	beego.Router("/photowall/query/video/:id", &controller.VideoController{}, "get:GetVideoInfoDetail")

	// 服务检测
	beego.Get("/web/status", func(context *context.Context) {
		controller.WebStatus(context)
	})
}
